package com.caishi.lkx.exam.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zzw.common.entity.impl.BaseEntity;
import com.zzw.common.service.model.NameModel;
import com.zzw.common.service.model.base.BaseTreeModel;
import com.zzw.common.service.model.base.SortModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.util.List;

@Schema(title = "套餐sku管理")
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "ex_package_sku_attr")
public class PackageSkuAttrModel extends BaseEntity<PackageSkuAttrModel> implements NameModel<PackageSkuAttrModel, String>, SortModel<PackageSkuAttrModel>, BaseTreeModel<PackageSkuAttrModel,String> {
    private String name;
    @Schema(title = "排序")
    private Integer sort;
    @Schema(title = "父级")
    private String parentId;
    @Schema(title = "备注")
    private String remark;
    @Schema(title = "是否可用")
    private Boolean enable;
    @Schema(title = "考试id  为0 则是通用")
    private String examId;
    /**
     * 行业id
     */
    private String industryId;

    @TableField(exist = false)
    private PackageSkuAttrModel parent;
    @TableField(exist = false)
    private List<PackageSkuAttrModel> children;
    @TableField(exist = false)
    private String examName;


}
